package com.ctsi.ssdc.service;


import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallAddress;
import com.ctsi.ssdc.domain.LitemallAddressExample;
import com.ctsi.ssdc.service.StrengthenBaseService;

import java.util.List;

/**
 * Service Interface for managing LitemallAddress.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallAddressService
        extends StrengthenBaseService<LitemallAddress, Integer, LitemallAddressExample>{
    /**
     * GET  /litemallAddresss : get the litemallAddresss firstStringBaseColumn.
     */
    PageResult<LitemallAddress> findFirstStringColumn(String name ,Pageable pageable);

    List<LitemallAddress> queryByUid(Integer userId);

    LitemallAddress query(Integer userId, Integer id);

    void resetDefault(Integer userId);

    int add(LitemallAddress address);

    LitemallAddress findDefault(Integer userId);
}
